# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=open-zwave-control-panel
pkgver=20170321
_sha=bbbd461c5763faab4949b12da12901f2d6f00f48
pkgrel=1
pkgdesc="The OpenZWave Control Panel"
url="https://github.com/OpenZWave/open-zwave-control-panel"
arch="" # Fails to compile due to new libmicrohttpd version
license="custom"
makedepends="libmicrohttpd-dev openzwave-dev tinyxml-dev gnutls-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenZWave/open-zwave-control-panel/archive/$_sha.tar.gz
	makefile.patch
	"
builddir="$srcdir/$pkgname-$_sha"

build() {
	make
}

package() {
	install -Dm755 ozwcp "$pkgdir"/usr/bin/ozwcp
	for i in *.js *.html; do
		install -Dm644 $i "$pkgdir/usr/share/$pkgname/$i"
	done
}

sha512sums="b688dec8b2a281f233e05e34e90923ed7848e930625dad19e44ece70cd2a1abe3bb23030fc528ef78e1b37e33068973f1b1637319d299d8d88a0328a41b2bff0  open-zwave-control-panel-20170321.tar.gz
8540d69445526834b39c6fc670de7d4c4e3cbf6ce007b776a4fa6f8ccf018aaf330f87894343797831292dc85efb7a7d371da691a1e4f4d3c59b63d10d2c139a  makefile.patch"
